﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.Collections.ObjectModel;

namespace ScrumLite.Services.Contracts
{
    [DataContract]
    public class PersonAssignation
    {
        [DataMember]
        public Person Person { get; set; }
        
        [DataMember]
        public bool IsInternal { get; set; }

        [DataMember]
        public Project Project { get; set; }

        [DataMember]
        public ProjectRole[] Roles { get; set; }
    }

    [DataContract]
    public class TeamMember
    {
        public TeamMember(): this(new Collection<string>())
        {
        }
        public TeamMember(Collection<string> roleIds)
        {
            this.RoleIds = roleIds;
        }
        [DataMember]
        public string PersonId { get; set; }

        [DataMember]
        public bool IsInternal { get; set; }

        [DataMember]
        public string ProjectId { get; set; }

        [DataMember]
        public Collection<string> RoleIds { get; private set; }
    }
}
